package cn.yh.register.client;

import cn.yh.register.model.user.Patient;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用户服务Feign接口
 */
@FeignClient("service-user")
public interface UserFeignClient {

    @ApiOperation(value = "获取就诊人")
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(@PathVariable("id") Long id);
}
